home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / File / s / Delete < prev    next >
Text File  |  1995-08-26  |  1KB  |  37 lines

  1. ;
  2. ;   ####             #    #     # #
  3. ;   #   #            #    #       #          The FreeWare C library for
  4. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  5. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  6. ;   #   # ####  ###  ##   #     # #  #
  7. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  8. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9. ;   ________________________________________________________________________
  10. ;
  11. ;   File:    File.s.Delete
  12. ;   Author:  Copyright © 1993 Jason Williams
  13. ;   Version: 1.01 (13 May 1994)
  14. ;   Purpose: SWI veneer for file operations - delete a file
  15.  
  16.         GET     ^.h.regdefs
  17.         GET     ^.h.swinos
  18.         GET     ^.h.macros
  19. ;
  20.         PREAMBLE
  21.         STARTCODE File_Delete
  22. ;
  23. ; extern os_error *File_Delete(char *filename);
  24. ;
  25.         STMFD   sp!, {v1, v2, lr}
  26.  
  27.         MOV     a2, a1
  28.         MOV     a1, #6
  29.  
  30.         SWI     SWI_OS_File + XOS_Bit
  31.  
  32.         MOVVC   a1, #0
  33.  
  34.         LDMFD   sp!, {v1, v2, pc}^
  35. ;
  36.         END
  37.